<template>
  <div>testB</div>
  {{ s }}
</template>
<script lang="ts" setup>
import emitter from '../../../plugins/Bus' // 子组件相互传值
let s = $ref('')
onBeforeMount(()=>{
  emitter.on('fn', e=>{
    console.log(e)
  })
})
</script>
<style scoped lang="scss">

</style>